<?PHP
#
# author: Cody Sorgenfrey
# (c)2012 South Hill Calvary Chapel
#

include_once("../mysql/database_info.php");
include_once("common.php");
include_once("../mysql/common.php");

$title = "Weekly Services";
$meta_key='weekly, services, bible, study, time, Wednesday, Sunday, Ministry, Children, Jr. High, High School, Home Fellowship';
$meta_desc="Weekly servies and times of worship at South Hill Calvary Chapel in Puyallup, WA Pierce County";
$morehtml= null;
$morejava= null;

startPage($title, $meta_key, $meta_desc, $morehtml, $morejava);


function service_block ($name, $services) {
printf("<h4>$name</h4>\n");
printf("<div>\n");
printf("\t<ul>\n");

for ($i = 0; $i < count($services); $i++) {
	printf("\t\t<li style='list-style:none;'>\n");
	printf("\t\t\t<h5>%s</h5>\n", $services[$i][0]);
	printf("\t\t\t<div class='paragraph'>\n");
	printf("\t\t\t\t<p style='margin-top:-30px;'>%s</p>\n", $services[$i][1]);
	printf("\t\t\t</div>\n");
	printf("\t\t</li>\n");
}
printf("\t</ul>\n");
printf("</div>\n");
}

$name ="Sunday Services";
$services = array(
array("Worship Service - 9:00 AM &amp; 11:15 AM","Worship and an in depth topical Bible study with Pastor Ron.  Visit our <a href='sermon.php?service=Sunday'>Archived Sermons Page</a> to see the most recent teaching."),
array("Children's Ministry  - 9:00 AM &amp; 11:15 AM","Children's Ministry is provided for both services on Sunday.  The classroom depends on your child's age or grade level.  Please ask a greeter for help finding your child's classroom."),
array("Abide Service (Jr. High) - 11:15 AM","The Junior Highers (Abide) have their own service  with Worship &amp; Bible study downstairs in the youth room.")
);
service_block ($name, $services);
printf("</div>\n\n");


printf("<div class='pageContent'>\n");
$name ="Wednesday Service";
$services = array(
array("Midweek Study - 7:00 to 8:30 PM","Worship and through the Bible study with Pastor Ron.  Visit our <a href='sermon.php?service=Wednesday'>Archived Sermons Page</a> to see the most recent teaching."),
array("Children's Ministry - 7:00 to 8:30 PM","Children's Ministry is available for your child.  The classroom depends on your child's age or grade level.  Please ask a greeter for help finding your child's classroom."),
array("Abide (Jr. High) - 7:00 to 8:30 PM","Join us as we grow in the grace of the Lord Jesus Christ downstairs in youth room.")
);
service_block ($name, $services);
printf("</div>\n\n");

printf("<div class='pageContent'>\n");
printf("<h4>Prayer Meetings </h4>\n");
printf("<div class='paragraph'>\n");
printf("\t<p>We hope you'll join us as we pray for the services, the Lord's will for the church, our Missionaries, and more...</p>\n");
printf("</div>\n");

$prayer_meeting = array("Saturday Evening Prayer",
                       "Sunday Morning Prayer",
					   "Wednesday Evening Prayer", 
					   "Men's Prayer Meetings",
					   "Women's Prayer Meetings",
					   "Missions Prayer Meetings");
$date_loc = array("5:30 PM - the Upper Room",
                       "8:00 AM - the Upper Room",
					   "6:00 PM - the Upper Room", 
					   "Saturdays at 7:30 AM (Except the 2nd Saturday) - the sanctuary",
					   "Mondays at 7:30 AM - the church office",
					   "2nd & 4th Sundays, 9:00 AM - the Upper Room");
printf("<div>\n");
printf("\t<ul>\n");
for ($i = 0; $i < count($prayer_meeting); $i++) {
	printf("\t\t<li style='list-style:none;'>\n");
	printf("\t\t\t<H5>%s</H5><div class='paragraph'><p style='margin-top:-30px;'>%s</p></div>\n", $prayer_meeting[$i], $date_loc[$i]);
	printf("\t\t</li>\n");
}
printf("\t</ul>\n");
printf("</div>\n");

endPage();
?>